package ws.jdbc.concurrent.statement;

import java.sql.SQLException;

/**
 * This interface provides services to add and execute SQL batch concurrently.
 * 
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
public interface IStatement {

  void addBatch(String sql) throws SQLException;
  void clearBatch() throws SQLException;
  int[] executeBatch() throws SQLException;

  void lock();
  void unlock();
}
